package com.wechat.file.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import jakarta.validation.constraints.*;

/**
 * 分片上传请求
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ChunkUploadRequest {

    /**
     * 上传会话ID
     */
    @NotBlank(message = "上传会话ID不能为空")
    private String uploadId;

    /**
     * 分片编号 (从1开始)
     */
    @NotNull(message = "分片编号不能为空")
    @Min(value = 1, message = "分片编号必须大于0")
    private Integer chunkNumber;

    /**
     * 分片MD5
     */
    @NotBlank(message = "分片MD5不能为空")
    private String chunkMd5;
}